const pkg = require('./package.json')

module.exports = {
  clean: true,
  dts: true,
  outDir: 'dist',
  sourcemap: true,
  external: [...Object.keys(pkg.dependencies ?? {}),...Object.keys(pkg.peerDependencies ?? {})],
  format: ['cjs', 'esm'],
  entryPoints: ['src/index.ts'],
  minify: true,
}
